package com.sitech.portal.server.service.impl;

import java.util.List;
import java.util.Map;

import com.sitech.portal.server.dao.ICalendarDao;
import com.sitech.portal.server.service.ICalendarService;

public class CalendarServiceImpl implements ICalendarService {

	private ICalendarDao calendarDao;
	
	public ICalendarDao getCalendarDao() {
		return calendarDao;
	}

	public void setCalendarDao(ICalendarDao calendarDao) {
		this.calendarDao = calendarDao;
	}

	@Override
	public void deleteCalendarEvent(String id, String LOGIN_ID) {
		// TODO Auto-generated method stub
		calendarDao.deleteCalendarEvent(id, LOGIN_ID);
	}

	@Override
	public List findCalendarEventInRecentSeconds(Long seconds) {
		// TODO Auto-generated method stub
		return calendarDao.findCalendarEventInRecentSeconds(seconds);
	}

	@Override
	public List findCalendarEvents(String LOGIN_ID) {
		// TODO Auto-generated method stub
		return calendarDao.findCalendarEvents(LOGIN_ID);
	}

	@Override
	public String insertCalendarEvent(Map event, String LOGIN_ID) {
		// TODO Auto-generated method stub
		return calendarDao.insertCalendarEvent(event, LOGIN_ID);
	}

	@Override
	public void updateCalendarEvent(Map event, String LOGIN_ID)
			throws Exception {
		// TODO Auto-generated method stub
		calendarDao.updateCalendarEvent(event, LOGIN_ID);
	}

}
